from flask import Flask,jsonify
from flask_cors import CORS
app=Flask(__name__)
CORS(app)
@app.route('/api/cms/banner',methods=['GET'])
def get_banner():
    banner_data={
        "code":200,
        "message":"success",
        "data":[
            {
                "id":1,
                "title":"Banner 1",
                "image":"https://example.com/banner1.jpg",
                "link":"https://example.com/link1"
            },
            {
                "id":2,
                "title":"Banner 2", 
                "image":"https://example.com/banner2.jpg",
                "link":"https://example.com/link2"
            }
        ]
    }
    return jsonify(banner_data)
if __name__ =='__main__':
    app.run(host='0.0.0.0',port=8510,debug=True)